package com.ruoyi.project.manage.approveLog.domain;

import com.ruoyi.project.manage.file.domain.ProjectFile;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 审批流转记录对象 eb_approve_log
 * 
 * @author fangkun
 * @date 2022-03-28
 */
public class ApproveLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long approveLogId;

    /** 审批类型，1 项目，2 资金，3 六定 */
    @Excel(name = "审批类型，1 项目，2 资金，3 六定")
    private Long entityType;

    /** 审批实体ID，按照类型不同，分别对应不同的实体 */
    @Excel(name = "审批实体ID，按照类型不同，分别对应不同的实体")
    private Long entityId;

    /** 审批结果，0 驳回，1 通过 */
    @Excel(name = "审批结果，0 驳回，1 通过")
    private Integer approveResult;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approveComment;

    /** 状态（0正常 1暂停） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=暂停")
    private String status;

    private List<ProjectFile> fileList;

    public List<ProjectFile> getFileList() {
        return fileList;
    }

    public void setFileList(List<ProjectFile> fileList) {
        this.fileList = fileList;
    }

    public void setApproveLogId(Long approveLogId)
    {
        this.approveLogId = approveLogId;
    }

    public Long getApproveLogId()
    {
        return approveLogId;
    }
    public void setEntityType(Long entityType)
    {
        this.entityType = entityType;
    }

    public Long getEntityType()
    {
        return entityType;
    }
    public void setEntityId(Long entityId)
    {
        this.entityId = entityId;
    }

    public Long getEntityId()
    {
        return entityId;
    }
    public void setApproveResult(Integer approveResult)
    {
        this.approveResult = approveResult;
    }

    public Integer getApproveResult()
    {
        return approveResult;
    }
    public void setApproveComment(String approveComment)
    {
        this.approveComment = approveComment;
    }

    public String getApproveComment()
    {
        return approveComment;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approveLogId", getApproveLogId())
            .append("entityType", getEntityType())
            .append("entityId", getEntityId())
            .append("approveResult", getApproveResult())
            .append("approveComment", getApproveComment())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
